import request from '@/utils/request'
// 查询明细
export function query(data) {
  return request({
    url: `/andon/detail/query`,
    method: 'post',
    data
  })
}
// 保存
export function save(data) {
  return request({
    url: `/andon/detail/save`,
    method: 'post',
    data
  })
}

export function batchRemove(data) {
  return request({
    url: `/andon/detail/deleteDetails`,
    method: 'delete',
    data
  })
}

export function remove(id) {
  return request({
    url: `/andon/detail/deleteDetail?id=${id}`,
    method: 'delete'
  })
}
